package com.weishenai.customerassistant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weishenai.customerassistant.entity.Electrical;

import java.util.List;
import java.util.Set;

public interface ElectricalService extends IService<Electrical> {
    Electrical getElectricalByWorkId(Integer workerId);

    Integer insertElectrical(Electrical area);

    Integer delElectrical(Integer id);

    Integer updateElectrical(Electrical area);

    IPage<Electrical> getElectrical(Integer pageNumber, Integer pageSize, String keyword);

    void Excel2DB(Electrical electrical);

    List<Electrical> selectByName(String name);

    Set<String> selectNames();

    List<Electrical> selectAll();

    Electrical selectById(Integer id);
}
